<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>日志查看系统</title>
    <%
        String filePath = (String) session.getAttribute("filePath");
        if (filePath == null) {
            filePath = "/usr/FBbank/logs/";
        }
    %>
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/bootstrap-3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/bootstrap-3.3.5/css/bootstrap-theme.min.css">
    <script src="${pageContext.request.contextPath}/bootstrap-3.3.5/js/jquery-1.11.2.min.js"></script>
    <script src="${pageContext.request.contextPath}/bootstrap-3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div align="center" style="padding-top: 200px">
    <form action="fileServlet" method="post">
        <div class="input-group" style="width: 500px">
            <span class="input-group-addon" id="basic-addon1">输入日志路径:</span>
            <input type="text" class="form-control" name="filePath" value="<%=filePath%>"
                   aria-describedby="basic-addon1"
                   placeholder="/home/fesine/Documents/">
        <span class="input-group-btn" style="padding-left: 5px">
        <input class="btn btn-danger" type="submit" value="查看"/>
      </span>
        </div>
    </form>
    <div style="color: red;margin-top: 5px">建议使用Chrome或Firefox浏览器</div>
</div>
<div style="position: absolute;
    bottom: 0;
    margin: 4px auto;
    width: 100%;">
    <div align="center">版权所有 fesine@pactera.com</div>
</div>
</body>
</html>